import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springside.core.dao.Page;

import com.sy.dao.ISTestDao;


public class Test {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"/spring/*/applicationContext*.xml"});
		BeanFactory factory = context;
		ISTestDao dao=(ISTestDao)factory.getBean("sTestDao");
		Page page=dao.getAllStestByVal(0, 10, new Object[]{"1"});
		int i=dao.queryCount();
		System.out.println(i);
		System.out.println(page.getTotalCount());
	}

}
